package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    /**
     * 根据电话--查找会员
     * @param telephone
     * @return
     */
    Member findMemberByPhone(String telephone);

    /**
     * 增加会员
     * @param member
     */
    void addMember(Member member);

    /**
     * 寻找每一个月的会员数量
     * @param months
     * @return
     */
    List<Integer> finMemberCount(List<String> months);


    /**
     * 查找所有会员信息
     * @return
     */
    List<Map<String,Object>> findMemberData();

    List<Map<String, Object>> findMemberAge() throws Exception;
}
